home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
cool
/
ge_cool.lha
/
GE_COOL2.1
/
README
< prev
Wrap
Text File
|
1992-07-14
|
4KB
|
104 lines
//
// Copyright (C) 1991 Texas Instruments Incorporated.
//
// Permission is granted to any individual or institution to use, copy, modify,
// and distribute this software, provided that this complete copyright and
// permission notice is maintained, intact, in all copies and supporting
// documentation.
//
// Texas Instruments Incorporated provides this software "as is" without
// express or implied warranty.
//
This directory contains the version of the COOL library developed at Texas
Instruments, and subsequently reworked and enhanced at General Electric.
An attempt was being made to remove dependencies on non-standard utility
programs, on the non-standard exception handling mechanism, and on the
generic class for runtime type determination.
It is complete, except for: generic, exception, symbol, and package.
----------------------------------------------------------------------------
To check that the libraries and executables you got from tar-tape work,
do steps: 1, 3, 4, 5, 6, 7, as described below:
---------------------------------------------------------------------------
To build this whole thing from scratch do the following:
1. Edit the file "Makedefs" in this directory to assign the correct values to
the macros. Hopefully the only thing you will have to change is "TOP"
which is the pathname of the directory where this file resides.
2. Execute the command "make allclean" to remove any old files that might
have been left around in the directories.
3. Execute the command "make alllink" to create symbolic links in the
"include" directory to all of the header files.
4. Execute the command "make alldepend" to update the dependency information
in the Makefiles.
5. Execute the command "make allinstall" to build and install the bootstrap
utilities: cpp.
6. Change cpp of your compiler, options are: AT&T/SUN or CenterLine.
6.1. For AT&T/SUN, make a copy of the compiler directory /usr/lang/SC1.0/
with soft symbolic links, linking to original executables and libraries.
For cpp, link it to COOL cpp in $(TOP)/bin/.
6.2. For CenterLine, change CC in your makefile as follows:
CCDRIVER = /home/oceana/software/CenterLine/bin/CC
CC = cppC=/home/sol/u4/IU/lice/bin/cpp ; export cppC ; $(CCDRIVER)
7. Execute the command "make all" to build all of the libraries, and run all
the tests.
----------------------------------------------------------------------------
To use COOL library, do the following:
1. Change include and library paths in your makefile:
APP_CCINCLUDES += -I$(TOP)/include
APP_CCLDFLAGS += -L$(TOP)/lib/sparc
APP_CCLDLIBS += -lCOOL
2. Make sure you have changed cpp, to be COOL cpp.
3. In your header files, include and declare COOL classes:
#include <cool/List.h>
#include <cool/Matrix.h>
DECLARE List<int>
DECLARE List<Matrix<double>*>
4. In your source file, include and declare COOL classes:
#include <cool/List.h>
#include <cool/Matrix.h>
DECLARE List<int>
DECLARE List<Matrix<double>*>
5. Remember to implement, generate object code for COOL classes only once,
in your whole application.
#include <cool/List.C>
#include <cool/Matrix.C>
IMPLEMENT List<int>
IMPLEMENT List_Node<int>
IMPLEMENT Matrix<double>
IMPLEMENT List<Matrix<double>*>
IMPLEMENT List_Node<Matrix<double>*>
This can be done by putting the above IMPLEMENT lines in main.C,
or by generating a library of type-specific containers.
6. Examples can be found in:
$(TOP)/Makedefs for setup of Makefiles
$(TOP)/*/tests/ for tests of classes
$(TOP)/*/examples/ for examples of classes
$(TOP)/src/examples/ for examples by manual sections